import request from '@/utils/request'

// 查询监控列表
export function listSharemonitor(query) {
  return request({
    url: '/filemgr/sharemonitor/list',
    method: 'get',
    params: query
  })
}

// 查询监控详细
export function getSharemonitor(id) {
  return request({
    url: '/filemgr/sharemonitor/' + id,
    method: 'get'
  })
}

// 新增监控
export function addSharemonitor(data) {
  return request({
    url: '/filemgr/sharemonitor',
    method: 'post',
    data: data
  })
}

// 修改监控
export function updateSharemonitor(data) {
  return request({
    url: '/filemgr/sharemonitor',
    method: 'put',
    data: data
  })
}

// 删除监控
export function delSharemonitor(id) {
  return request({
    url: '/filemgr/sharemonitor/' + id,
    method: 'delete'
  })
}
